<extend name="Public/common"/>
<block name="othercss">
</block>
<block name="header">
<div class="header">
    <div class="clearfix box">
        <!--<a class="save">保存</a>-->
        <a class="return" href="javascript:history.back(-1)"><i class="return-icon"></i></a>
        <h2>订单详情</h2>
    </div>
</div>
</block>
<block name="body">

<!--end header-->
<div class="container pt50">
    <div class="dddetalis_bg" style="background-image: url('{$theme_path}/images/bg_dd.jpg')">
        {$order.status_str}
    </div>
    <!--地址-->
    <div class="vip2_loc">
        <div class="clearfix top">
            <div class="number">{$order.addr_phone}</div>
            <div class="name">收货人：{$order.addr_realname}</div>
        </div>
        <div class="clearfix">
            <div class="loc">{$order.addr_province} {$order.addr_city} {$order.addr_area} {$order.addr_address}<br>{$order.addr_zip}
            </div>
            <img src="{$theme_path}/images/icon-loc.png" width="20"/>
        </div>
    </div>
    <!--商品-->
    <ul class="vip2_pro">
    <foreach name="goods" item="goods_item">
        <li class="clearfix">
            <div class="lans">
                <a class="title twos" href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}" >{$goods_item.goods_name}</a>
                <a class="mess clearfix" href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}"><span class="number">x{$goods_item.goods_num}</span>{$goods_item.goods_spec}</a>
                <div class="clearfix">
                <if condition="$order['status_pay'] eq 3">
                      <a  class="btn" href="{:urlrotue('Member/shenqing_tuihuan',Array('id'=>$goods_item['id']))}">申请售后</a>
                       </if>
                        <if condition="$order['status_delivery'] eq 4">
                         <a class="btn"href="{:urlrotue('Member/comment_add',Array('id'=>$goods_item['id']))}">评价</a>
                      </if>
                
                    <div class="price">¥ {$goods_item.goods_price}</div>
                </div>
            </div>
            <a class="imgs" href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}">
                <img src="__ROOT__{$goods_item.goods_picture}"/>
            </a>
        </li>
     </foreach>

    </ul>
    <!--总计-->
    <ul class="vip2_total clearfix">
  
        <li>商品总价<span>¥ {$order.total_cart}</span></li>
         <if condition="$order['total_delivery'] gt 0">
        <li>运费<span>¥ {$order.total_delivery}</span></li>
        </if>
        <if condition="$order['total_pay_yhq'] gt 0">
        <li>优惠金额<span>¥ -{$order.total_pay_yhq}</span></li>
        </if>
         <if condition="$order['total_pay_point'] gt 0">
        <li>积分金额<span>¥ -{$order.total_pay_point}</span></li>
        </if>
         <if condition="$order['status_pay'] eq 3">
        <li>支付金额<span>¥ {$order.total_pay|priceTofixed}</span></li>
        <else/>
        <li>订单金额<span>¥ {$order.total_need_pay}</span></li>
        </if>
    </ul>
    <!--time-->
    <ul class="vip2_time">
        <li class="clearfix">
            <div class="right">{$order.order_no}</div>
            <div class="left">订单编号</div>
        </li>
        <li class="clearfix">
            <div class="right">{$order.time_create|stringtime=1}</div>
            <div class="left">下单时间</div>
        </li>
    </ul>
    <div class="tt1">物流信息：</div>
     <notempty name="kuaidi_list">
    <ul class="car-details">
     <div>物流：{$order.delivery_company}，快递运单号:{$order['delivery_no']}</div>
        <volist name="kuaidi_list['Traces']" id="item">
        <li>
            <span class="time"> {$item.AcceptTime} </span>
            <span class="tings">{$item.AcceptStation}</span>
        </li>
       </volist>
    </ul>
    </notempty>
</div>


<block name="otherjs">

</block>
